package com.endpoint.book.feign;

import com.endpoint.book.to.AuthorTo;
import com.endpoint.common.utils.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Project: endpoint
 * @Name: AuthorFeignService
 * @Author: Jack_Li
 * @Date: 2024/7/8 13:35
 */
@FeignClient("endpoint-author")
public interface AuthorFeignService {

    @GetMapping("/author/getAuthor/{memberId}")
    public ResultBean<AuthorTo> getAuthorByMemberId(@PathVariable("memberId") Long memberId);

}
